package com.rmt.www.action;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.rmt.www.constant.ArtifactType;
import com.rmt.www.dao.ArtifactDao;
import com.rmt.www.dao.ProjectDao;
import com.rmt.www.dao.UserDao;
import com.rmt.www.service.DevManageDesignService;
import com.rmt.www.vo.Artifact;
import com.rmt.www.vo.DesignArtifact;
import com.rmt.www.vo.Project;
import com.rmt.www.vo.User;


public class UpdateDesignAction extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public int aid;
	private DesignArtifact artifact;
	
	
	public DesignArtifact getArtifact() {
		return artifact;
	}


	public void setArtifact(DesignArtifact artifact) {
		this.artifact = artifact;
	}


	public int getAid() {
		return aid;
	}


	public void setAid(int aid) {
		this.aid = aid;
	}


	public DevManageDesignService getDevManageDesignService() {
		return devManageDesignService;
	}


	public void setDevManageDesignService(
			DevManageDesignService devManageDesignService) {
		this.devManageDesignService = devManageDesignService;
	}


	private DevManageDesignService devManageDesignService;
	
	
	public String execute(){
		artifact = devManageDesignService.getDesignArtifact(aid);
		return "success";
	}
}
